#include "main.h"
unsigned char Counter=0;
unsigned char Num_Count=0;
unsigned char num=0;

void main()
{
    unsigned int a=0;
    LCD_Init();
    Int_Cut();
    Timer0_Init();

    while(1)
    {
        LCD_ShowNum(1,1,Re_Address(),3);
        LCD_ShowNum(2,1,Re_Command(),3);
        if(Repeat_Flag()||Command_Flag())
        {
            if(Re_Command()==0x09)
            num++;
        }

        LCD_ShowNum(2,10,num,3);
    }
}


